<%@page import="java.text.SimpleDateFormat"%>
<%@page import="java.util.Date"%>
<%@page import="user.User"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>title</title>

<script language="javascript">     
 var currentDate = new Date(<%=new java.util.Date().getTime()%>);   
   function run() {       
   currentDate.setSeconds(currentDate.getSeconds() + 1);          
   document.getElementById("currentTime").innerHTML = currentDate.toLocaleString();}     
   window.setInterval("run();", 1000); 

 </script>
<style type="text/css">
body{
    OVERFLOW:SCROLL;
    OVERFLOW-X:HIDDEN;
   background-image: url(../images/1.png);
	background-repeat: no-repeat;
	background-size: cover;;
}

.div{
color:#CC00FF;
  font-family:"STLiti";
  margin-left:0px;
  display:inline-block;
  margin-top: 20px;
}
.div1{
height:30px;
color:#CC00FF;
font-family:"STLiti";
display:inline-block;
/* margin:10px */
}
.div2{
     font-family:"STXingkai";
     color:#CC00FF;
     text-align:center;
     height:30px;
     font-size: 25px;
}

iframe{
    margin-left:40px;
	height: 23px; 
	background-color: red;
	color:green;
}
</style>
</head>
<body>
 <%
  User user = (User)session.getAttribute("user");
//获取当前日期
Date today = new Date();
SimpleDateFormat ft = new SimpleDateFormat("yyyy年MM月dd日  HH:MM:ss");
//获取在线人数(获取计数器)
String cournter=(String)application.getAttribute("cournter");
session.setAttribute("user", user);
 %>
 <div class="div2">和园一号新闻发布系统
 </div>
 <div class="div1">欢迎<%=user.getUname() %>在线人数为<%=cournter %>今天是：</div><div id="currentTime" class="div"></div><iframe id="fancybox-frame" name="fancybox-frame1589853545186" frameborder="0" scrolling="no" hspace="0"  src="http://i.tianqi.com/index.php?c=code&a=getcode&id=34&h=25&w=280"></iframe>
</body>
</html>